package com.lin.controller;

import com.lin.base.Result;
import com.lin.service.impl.LineServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Date;

@RequestMapping("/line")
@RestController
public class LineController {

    @Resource
    private LineServiceImpl lineService;

    @GetMapping
    public Result getData(@RequestParam("department_did") Integer departmentDid,
                          @RequestParam("date") String date) throws Exception {

        return lineService.getData(departmentDid, date);
    }
}
